/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package batailledesardennes.game.input;

/**
 *
 * @author charly
 */
public class MouseEvent {
   public enum Type {
      PRESSED, RELEASED, MOVED;
   }

   public enum Button {
      LEFT, MIDDLE, RIGHT;
   }
   private Type type;
   private Button button;
   private int x;
   private int y;
   private boolean down;

   public MouseEvent() {
   }

   public MouseEvent(Type type, Button button, int x, int y, boolean down) {
      this.type = type;
      this.button = button;
      this.x = x;
      this.y = y;
      this.down = down;
   }

   public Button getButton() {
      return button;
   }

   public boolean isDown() {
      return down;
   }

   public Type getType() {
      return type;
   }

   public int getX() {
      return x;
   }

   public int getY() {
      return y;
   }

   public void setButton(Button button) {
      this.button = button;
   }

   public void setDown(boolean down) {
      this.down = down;
   }

   public void setType(Type type) {
      this.type = type;
   }

   public void setX(int x) {
      this.x = x;
   }

   public void setY(int y) {
      this.y = y;
   }
}
